package com.bouncy.ball;

import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Color;

public class p1Puck {
	private final int RADIUS = 15;

	private final int RIGHTSCREEN = 480 ;
	private final int BOTOMSCREEN = 900 ;

	private Bitmap img;

	private float x = 50;
	private float y = 50;

	private int color;

	public p1Puck(int x, int y, int vX, int vY, int c, Context cont){
		BitmapFactory.Options opts = new BitmapFactory.Options();
		opts.inJustDecodeBounds = true;
		
		this.x = x;
		this.y = y;
		this.color = c;

	}
	public float getX(){
		return x;
	}
	public void setX(float f){
		this.x = f;
	}
	public float getY(){
		return y;
	}
	public void setY(float f ){
		this.y = f;
	}
	public Color getColor(Color color){
		return color;

	}
	public void setColor(int color){
		this.color = color;
	}


	public void move(int goX, int goY, ColorBall otherball){

	}
	public void update(){
		if(x + RADIUS >= RIGHTSCREEN || x - RADIUS <= 0){
			x *= x-1;
		}
		if(y + RADIUS >= RIGHTSCREEN || y - RADIUS <= 0){
			y *= y-1;
		}
		
	}
	
}
